/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_prod_offer_res_rela.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PROD_OFFER_RES_RELA
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_prod_offer_res_rela.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_PROD_OFFER_RES_RELA::CTable_PPM_PROD_OFFER_RES_RELA( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PROD_OFFER_RES_RELA" );
  prepareTable();
  prepareQuery();
 
	OFFER_RES_RELA_ID.setField( "OFFER_RES_RELA_ID", DATA_DOUBLE, 9, 1 );
  makeTableItem( OFFER_RES_RELA_ID );
	makeKeyItem( OFFER_RES_RELA_ID ); 
  PROD_OFFER_ID.setField( "PROD_OFFER_ID", DATA_DOUBLE, 9, 0 );
  makeTableItem( PROD_OFFER_ID );
  MKT_RES_CD.setField( "MKT_RES_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( MKT_RES_CD );
  RELATION_TYPE_CD.setField( "RELATION_TYPE_CD", DATA_CHAR, 3, 0 );
  makeTableItem( RELATION_TYPE_CD );
	APP_ID.setField( "APP_ID", DATA_CHAR, 22, 0 );
  makeTableItem( APP_ID );
}


CTable_PPM_PROD_OFFER_RES_RELA::CTable_PPM_PROD_OFFER_RES_RELA( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PROD_OFFER_RES_RELA" );
  prepareTable();
  prepareQuery();
 
 	OFFER_RES_RELA_ID.setField( "OFFER_RES_RELA_ID", DATA_DOUBLE, 9, 1 );
  makeTableItem( OFFER_RES_RELA_ID );
	makeKeyItem( OFFER_RES_RELA_ID ); 
  PROD_OFFER_ID.setField( "PROD_OFFER_ID", DATA_DOUBLE, 9, 0 );
  makeTableItem( PROD_OFFER_ID );
  MKT_RES_CD.setField( "MKT_RES_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( MKT_RES_CD );
  RELATION_TYPE_CD.setField( "RELATION_TYPE_CD", DATA_CHAR, 3, 0 );
  makeTableItem( RELATION_TYPE_CD );
	APP_ID.setField( "APP_ID", DATA_CHAR, 22, 0 );
  makeTableItem( APP_ID );
}

CTable_PPM_PROD_OFFER_RES_RELA::~CTable_PPM_PROD_OFFER_RES_RELA( )
{
    close();
}

